package com.dzz.sjgl.service;


import com.dzz.sjgl.entity.Dictionary;
import com.dzz.sjgl.entity.SentenceInfo;

import java.util.List;
import java.util.Map;


public interface ISentenceService {

    /**
     * 保存更新
     */
    SentenceInfo save(SentenceInfo sentenceInfo);


    /**
     * 分页
     */
    Map<String, Object> findAllByQuery(Integer pageNumber, Integer pageSize, String sentence, Integer paperId, String province, String exam, Integer minYear, Integer maxYear);

    /**
     * 单词 统计
     */
    Map<String, Object> getCount(String word);

    /**
     * 词频 统计
     */
    Map<String, Object> getCp(int pageNum, int pageSize, String word, Integer minCp, String province, String exam, Integer minYear, Integer maxYear);

    /**
     * 查看单词所在试卷信息
     */
    Map<String, Object> getPaperByWord(int pageNum, int pageSize, Integer wordId, String province, String exam, Integer minYear, Integer maxYear, String word);

    /**
     * 字典表通用查询
     */
    List<Dictionary> getDict(String type, String name, String code);

    /**
     * 删除脏数据
     */
    int delDirtyData();
}